home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / bbs_util / bsrc_260.zip / INCLUDE.ZIP / COM.H < prev    next >
C/C++ Source or Header  |  1996-03-23  |  5KB  |  128 lines

  1. /*--------------------------------------------------------------------------*/
  2. /*                                                                          */
  3. /*                                                                          */
  4. /*      ------------         Bit-Bucket Software, Co.                       */
  5. /*      \ 10001101 /         Writers and Distributors of                    */
  6. /*       \ 011110 /          Freely Available<tm> Software.                 */
  7. /*        \ 1011 /                                                          */
  8. /*         ------                                                           */
  9. /*                                                                          */
  10. /*              (C) Copyright 1987-96, Bit Bucket Software Co.              */
  11. /*                                                                          */
  12. /*                                                                          */
  13. /*                                                                          */
  14. /*                Communications definitions for BinkleyTerm                */
  15. /*                                                                          */
  16. /*                                                                          */
  17. /*    For complete  details  of the licensing restrictions, please refer    */
  18. /*    to the License  agreement,  which  is published in its entirety in    */
  19. /*    the MAKEFILE and BT.C, and also contained in the file LICENSE.260.    */
  20. /*                                                                          */
  21. /*    USE  OF THIS FILE IS SUBJECT TO THE  RESTRICTIONS CONTAINED IN THE    */
  22. /*    BINKLEYTERM  LICENSING  AGREEMENT.  IF YOU DO NOT FIND THE TEXT OF    */
  23. /*    THIS  AGREEMENT IN ANY OF THE  AFOREMENTIONED FILES,  OR IF YOU DO    */
  24. /*    NOT HAVE THESE FILES,  YOU  SHOULD  IMMEDIATELY CONTACT BIT BUCKET    */
  25. /*    SOFTWARE CO.  AT ONE OF THE  ADDRESSES  LISTED BELOW.  IN NO EVENT    */
  26. /*    SHOULD YOU  PROCEED TO USE THIS FILE  WITHOUT HAVING  ACCEPTED THE    */
  27. /*    TERMS  OF  THE  BINKLEYTERM  LICENSING  AGREEMENT,  OR  SUCH OTHER    */
  28. /*    AGREEMENT AS YOU ARE ABLE TO REACH WITH BIT BUCKET SOFTWARE, CO.      */
  29. /*                                                                          */
  30. /*                                                                          */
  31. /* You can contact Bit Bucket Software Co. at any one of the following      */
  32. /* addresses:                                                               */
  33. /*                                                                          */
  34. /* Bit Bucket Software Co.        FidoNet  1:104/501, 1:343/491             */
  35. /* P.O. Box 460398                AlterNet 7:42/1491                        */
  36. /* Aurora, CO 80046               BBS-Net  86:2030/1                        */
  37. /*                                Internet f491.n343.z1.fidonet.org         */
  38. /*                                                                          */
  39. /* Please feel free to contact us at any time to share your comments about  */
  40. /* our software and/or licensing policies.                                  */
  41. /*                                                                          */
  42. /*--------------------------------------------------------------------------*/
  43.  
  44. #define BITS_7            0x02
  45. #define BITS_8            0x03
  46. #define STOP_1            0x00
  47. #define STOP_2            0x04
  48. #define ODD_PARITY        0x08
  49. #define EVEN_PARITY        0x18
  50. #define NO_PARITY        0x00
  51.  
  52. /* Bit definitions for the driver flags */
  53.  
  54. #define USE_XON            0x01
  55. #define USE_CTS            0x02
  56. #define USE_DSR            0x04
  57. #define OTHER_XON        0x08
  58.  
  59. #define BRK                0x01
  60. #define MDM                0x02
  61.  
  62. struct LINE_CONTROL
  63. {
  64.     int carrier_mask;
  65.     int handshake_mask;
  66. };
  67.  
  68. struct baud_str
  69. {
  70.     unsigned long rate_value;
  71.     unsigned long rate_mask;
  72. };
  73.  
  74. struct parse_list
  75. {
  76.     int p_length;
  77.     char p_string[20];
  78. };
  79.  
  80. struct secure
  81. {
  82.     char *rq_OKFile;
  83.     char *rq_FILES;
  84.     char *rq_About;
  85.     char *rq_Template;
  86.     char *sc_Inbound;
  87.     int rq_Limit;
  88.     int time_Limit;
  89.     long byte_Limit;
  90.     int rq_Cum_Limit;
  91.     long time_Cum_Limit;
  92.     long byte_Cum_Limit;
  93.     int security;                /* Maximus Security */
  94. };
  95.  
  96. struct req_accum
  97. {
  98.     long CumBytes;
  99.     long CumFiles;
  100.     long CumTime;
  101.  
  102. /*
  103.  * This is measured in SECONDS of request processing time, as
  104.  * opposed to time, below, which is the "here and now" time.
  105.  * The reason for the Cum v non-Cum stuff is to allow for two sets of
  106.  * verbs - one for a session limit,    one for a cumulative limit.
  107.  * We also need a verb to shut the accumulation shit off.
  108.  */
  109.     int files;
  110.     long bytes;
  111.     long time;
  112.     long LastTime;
  113. };
  114.  
  115. #ifdef DOS16
  116. #include "com_dos.h"
  117. #endif
  118.  
  119. #ifdef OS_2
  120. #include "com_os2.h"
  121. #endif                            /* OS_2 */
  122.  
  123. #ifdef _WIN32
  124. #include "com_nt.h"
  125. #endif
  126.  
  127. /* END OF FILE: com.h */
  128.